<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户列表</title>
    <!-- 引入Bootstrap的CSS文件 -->
	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/css/bootstrap.min.css">

</head>
<body>
    <div class="container">
        <!-- 显示主数据源用户 -->
        <h2>主数据源用户</h2>
        <table class="table">
            <!-- 表头... -->
            <tbody>
                <tr th:each="user : ${primaryUsers}">
                    <td th:text="${user.id}"></td>
                    <td th:text="${user.username}"></td>
                    <td th:text="${user.email}"></td>
                </tr>
            </tbody>
        </table>

        <!-- 显示第二个数据源用户 -->
        <h2>第二个数据源用户</h2>
        <table class="table">
            <!-- 表头... -->
            <tbody>
                <tr th:each="user : ${secondaryUsers}">
                    <td th:text="${user.id}"></td>
                    <td th:text="${user.username}"></td>
                    <td th:text="${user.email}"></td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>